# -*- coding:utf-8 -*-

"""
https://httpbin.ceshiren.com/get
"""
from Enterprise_wechat_Interface.po.basepage import BasePage


class SendHttpbin(BasePage):
    def get_test(self):
        """
        get接⼝请求
        :return:
        """
        req_data = {
            "method": 'get',
            "url": "https://httpbin.ceshiren.com/get",
            "data": None,
            "headers": None
        }
        r = self.send(req_data)
        return r

    def psot_test(self):
        """
        post接⼝请求
        :return:
        """
        req_data = {
            "method": 'post',
            "url": "https://httpbin.ceshiren.com/post",
            "data":  {
            "key_test1": "value_test1",
            "key_test2": "value_test2"
        },
            "headers": None
        }
        r = self.send(req_data)
        return r